package com.huadao.cart_ccs.data.bo;

import com.huadao.cart_ccs.R;
import com.huadao.cart_ccs.main.CartApplication;

/**
 * 二氧化碳
 */
public class CO2BO extends AtmosphereBO {

//    public static final byte ModularType_CO2 =0x5;
    public static final byte Atmosphere_CO2 = 0x02;

//    public static final byte read= (byte) 0xFF;//读
//    public static final byte write= (byte) 0xCC;//写

    private double CO2;

    @Override
    protected String getModularTypeStr() {
        return CartApplication.getInstance().getString(R.string.CO2);
    }

    public double getCO2() {
        return CO2;
    }

    public void setCO2(double CO2) {
        this.CO2 = CO2;
    }

    @Override
    protected String getOrderStr() {
        if(order==stop){
            return CartApplication.getInstance().getString(R.string.stopCO2);
        }else {
            return super.getOrderStr();
        }
    }

    @Override
    protected String getOrderContentStr() {
        if(order==stop){
            return super.getOrderContentStr();
        }
        StringBuilder stringBuilder = new StringBuilder();
        stringBuilder.append(CO2);
        return stringBuilder.toString();
    }
}
